package com.mybatis.plus.controller;

import com.mybatis.plus.entity.UserEntity;
import com.mybatis.plus.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping(value = "/useMapper")
@Slf4j
public class User1Controller {

    @Autowired
    UserMapper userMapper;
    @GetMapping(value = "/insertUser")
    public void insertUser(){
        userMapper.insert(new UserEntity("赵匡胤",21,"北京","篮球"));
    }
}
